﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace iResume
{
    public partial class adminViewJobPost : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ArrayList RecruiterJobView = new ArrayList();
            string username = (string)(Session["usernamee"]);
            if (username == null)
            {
                Response.Redirect("loginpage.aspx");
            }
            string jobID = (string)(Session["jobID"]);


            RecruiterJobView = DBManager.retrieveJobPostRecruiter(jobID, username);
            Recruiter r = new Recruiter();
            r = (Recruiter)RecruiterJobView[0];
            Image1.ImageUrl = "recruiterDisplayImage.ashx?id=" + username;
            //Company Information
            lblCompanyName.Text = r.CompanyName;
            lblCompanyURL.Text = r.CompanyURL;
            lblCompanyAddress.Text = r.CompanyAddress;
            lblCompanyPostalCode.Text = r.PostalCode;
            lblCompanyProfile.Text = r.CompanyProfile;
            lblSalaryRange.Text = r.SalaryRange;
            lblJobPosition.Text = r.JobPosition;
            lbljobcategory.Text = r.Category;
            lblJobDescription.Text = r.JobDescription;
            lblVacancyAvailable.Text = r.VacancyAvabile;
            //Personal Information
            lblName.Text = r.PersonInCharge;
            lblEmail.Text = r.Email;
            lblContactNum.Text = r.ContactNum;
        }
    }
}